package main

import (
	"fmt"
	//"math"
	"math/cmplx"	
)

var value complex128 = 625
var root complex128 = 5

func main() {
	//fmt.Println(cmplx.Curt(8))
	var x complex128 = 1
	prev := x
	for /*n := 0; n<26; n++*/{
		x = x - ((cmplx.Pow(x,root)-value)/(cmplx.Pow(x, root-1)*root))
		if prev == x {
			fmt.Println(x)
			fmt.Println(cmplx.Pow(x,root))
			return	
		}
		prev = x
	}
}